import {MESSAGE} from "./util/alert.js";
import {AJAX} from "./util/ajax.js";
import {URL} from "./router/config.js";
import {removeAllChild} from "./util/utils.js";

(function () {
    InitIndex();

    function InitIndex() {
        AJAX.get({
            url:URL.HOST_URL()+URL.MARKDOWN_PAGE,
            success:function (data){
                let content = document.querySelector("#main-content");
                content.innerHTML = data;
            }
        });

    }


})(window);
